@extends('Admin.Layouts.index')
@section('content')
 			@if (count($errors) > 0)
                <div class="alert alert-danger">
                    <ul>
                    @if(is_object($errors))
                        @foreach ($errors->all() as $error)
                            <li class="alert alert-error">{{ $error }}</li>
                        @endforeach
                    @else
                          <li class="alert alert-error">{{ $errors }}</li>
                    @endif  
                    </ul>
                </div>
            @endif
<div class="box span12">
	<div class="box-header" data-original-title>

		<h2><span class="break">
			
		</span></h2>
	</div>
	<br>
	<div class="box-content">
		<form class="form-horizontal" action="{{url('admin/user')}}" method="post">
		{{ csrf_field() }}
			<div class="control-group">
			  <label class="control-label" for="date01">用户名</label>
			  <div class="controls">
				<input type="text" name="username" value="">
			  </div>
			</div>
			<div class="control-group">
			  <label class="control-label" for="date01">密码</label>
			  <div class="controls">
				<input type="password" name="password" value="">
			  </div>
			</div>
			<div class="control-group">
			  <label class="control-label" for="date01">邮箱</label>
			  <div class="controls">
				<input type="email" name="email" value="">
			  </div>
			</div>
			<div class="control-group">
			  <label class="control-label" for="date01">手机号</label>
			  <div class="controls">
				<input type="text" name="phone" value="">
			  </div>
			</div>
			

			<div class="form-actions">
			  <button type="submit" class="btn btn-primary">添加</button>
			  <button type="reset" class="btn">重置</button>
			</div>
		</form>   

	</div>
</div><!--/span-->

@endsection